import { Layout, Breadcrumb } from "antd"
import { Route } from "react-router"
import Home from "./views/Home"

const {Content} = Layout

export default function Main() {
  return (
    <Content className="site-layout" style={{ padding: '0 50px', marginTop: 64 }}>
      <Breadcrumb style={{ margin: '16px 0' }}>
        <Breadcrumb.Item>首页</Breadcrumb.Item>
        <Breadcrumb.Item>列表</Breadcrumb.Item>
      </Breadcrumb>
      <div className="site-layout-background" style={{ padding: 24, minHeight: 680 }}>
        <Route exact path='/'>
          <Home />
        </Route>
      </div>
    </Content>
  )
}
